package com.ruoyi.common.service;



import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.entity.Category;

import java.util.List;

public interface CategoryService  extends IService<Category> {
    List<Category> getAllActiveCategories();
    Category getCategoryById(Integer id);
    Category saveCategory(Category category);
    Category updateCategory(Integer id, Category category);
    void deleteCategory(Integer id);

    Category selectExist(String categoryName);

    Category saveSpiderCategory(Category category);
}